home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Utilities Professional 1-1500
/
Utilities Professional 1-1500 (1994)(WPD)[!].iso
/
07511000
/
var0888.dms
/
var0888.adf
/
WoManD
/
man
/
Dictionary
/
directory
< prev
next >
Wrap
Text File
|
1992-09-19
|
4KB
|
75 lines
DIRECTORY(1) DICTIONARY DIRECTORY(1)
DIRECTORY, PATH NAME
AmigaDOS stores most of its information in what is called FILEs.
Files are a set of characters that can be used by the Amiga and/or by
Amiga users. To organize the set off files, and make them accessible in
a friendly way, files are stored in different directories, in the
same way that letters can be stored in folders.
Directories can actually contains both files and directories at
the same time. There is no limit on the number of files and directories
that a directory can contain, the only limit being the available space
on the media they are stored on (floppy disk, hard disk, ... ). This
makes it possible to create a complex structure of nested directories.
Each disk device (floppy disk, hard disk, RAM disk) are directories
which do not belong to any other directory.
The directory that contains a given directory is called its
parent, and the contained directory is called a subdirectory. A root
directory is a directory that has no parent.
The only restriction on directories is that they cannot belong to
one of their ancestors. This mean that the AmigaDOS file system is
organized as a set of binary trees all starting from a root directory
consisted by a disk device.
When using the SHELL or CLI, one is always in what is called the
current directory. This means that by default all commands look for
files and directories into that directory. With the CD command it is
possible to change the current directory and so, move up and down in
the directory structure. The DIR and LIST commands display the content
of a directory.
Under Workbench, every files and directory is associated with an
icon. To look at the content of a directory, one must click on its icon.
Workbench then opens a new windows containing one icon per file or
directory.
The full name of a directory is also often referred to as a
path_name. The syntax for a pathname can be of different types. It can
be either relative or absolute. Relative pathname describe the
directory name as starting from the current directory. For example,
mail/letters
represents the subdirectory letters that is contained in the mail
directory contained itself in the current directory.
Absolute pathnames start from the name of a disk device.
For example :
df0:c
represents the c directory of the floppy inserted in drive 0.
As these examples show, the names of nested directories are separated
by the / symbol. Device names are distinguished by the fact that they
are always followed by a colon. At the beginning of a path, the / symbol
represents the parent directory. So, if the current directory is df0:c ,
/s
represents the directory df0:s . The root directory of the current
directory can be referred to by a colon. So if the current directory is
df0:text/letters ,
list :
is equivalent to
list df0:
.
Disks can be named either by their device name (e.g df0:) or by
their volume name. Workbench1.3:c is thus equivalent to df0:c (if the
Workbench1.3 disk is in drive 0!)
Another example: if df0:mail/letter/personal is the current directory,
then, the directory ///source/c/myprog is nothing but
df0:sources/c/myprog.
SEE ALSO:
FILE, CD, DIR, LIST, Volume, Pattern.